﻿using System.Collections.Generic;

namespace UnitTesting.Engine
{
    public class SchedulerBuilder
    {
        public Scheduler.Scheduler BuildScheduler(List<int> usedSts)
        {
            var ts = new Scheduler.Scheduler();

            var factory = new MiddlewareFactory();

           ts.AddWorker(0).AddMiddleware(factory.CreateMiddleware(0, DeviceMainKind.Aoi));
           ts.AddWorker(1).AddMiddleware(factory.CreateMiddleware(0, DeviceMainKind.WorkTester ));


           ts.AddWorker(2).AddMiddleware(factory.CreateMiddleware(0, DeviceMainKind.WorkTester));


           ts.AddWorker(3).AddMiddleware(factory.CreateMiddleware(0, DeviceMainKind.Aoi, true));




            return ts;
        }
    }
}